package com.laysonx.demo.config;

import com.laysonx.data.police.core.DataPoliceConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: 开启DataPolice
 * @author: Laysonx
 * @date: 2019/10/17 16:36
 */
//@Configuration
//public class DataPoliceConfig {
//
//    @Bean
//    public DataPoliceConfigurer configurer(){
//
//        DataPoliceConfigurer configurer = new DataPoliceConfigurer();
//        configurer.setPointcut("execution(* com..*.api..*.*(..)) || execution(* com..*.service..*.*(..))");
//        configurer.setScanHelperPackages(new String[]{"com.laysonx.demo.handler"});
//
//        return configurer;
//    }
//}
